package com.yyp.car.dwr;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Service;

import com.yyp.car.Iservice.IStudentService;
import com.yyp.car.Iservice.IUserService;

@Service("dwrService")
public class DwrService implements IDwrService{
	@Resource(name="studentService")
	private IStudentService studentService;
	@Resource(name="userService")
	private IUserService userService;

	@Override
	public String addTestType(int id, String testType) {
		studentService.addTestType(id, testType);
		return "ok";
	}

	@Override
	public String delTestType(int id) {
		studentService.delTestType(id);
		return "ok";
		
	}

	@Override
	public String findTestType(int id) {
		return studentService.findTestType(id);
	}
}
